package com.ruoyi.school.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生作品对象 home_work
 * 
 * @author ruoyi
 * @date 2023-08-31
 */
public class HomeWork extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 图片ID */
    private Integer imageId;

    /** 学生作品时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "学生作品时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date worksTime;

    /** 作者姓名 */
    @Excel(name = "作者姓名")
    private String authorName;

    /** 作品分类 */
    @Excel(name = "作品分类")
    private Integer worksStyle;

    /** 图片路径 */
    @Excel(name = "图片路径")
    private String imagePath;

    public void setImageId(Integer imageId) 
    {
        this.imageId = imageId;
    }

    public Integer getImageId() 
    {
        return imageId;
    }
    public void setWorksTime(Date worksTime) 
    {
        this.worksTime = worksTime;
    }

    public Date getWorksTime() 
    {
        return worksTime;
    }
    public void setAuthorName(String authorName) 
    {
        this.authorName = authorName;
    }

    public String getAuthorName() 
    {
        return authorName;
    }
    public void setWorksStyle(Integer worksStyle) 
    {
        this.worksStyle = worksStyle;
    }

    public Integer getWorksStyle() 
    {
        return worksStyle;
    }
    public void setImagePath(String imagePath) 
    {
        this.imagePath = imagePath;
    }

    public String getImagePath() 
    {
        return imagePath;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("imageId", getImageId())
            .append("worksTime", getWorksTime())
            .append("authorName", getAuthorName())
            .append("worksStyle", getWorksStyle())
            .append("imagePath", getImagePath())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
